package com.mike.spring.IOC;

import java.util.List;
import java.util.Set;

public class FXNewsProvider {
    private NewsListener newsListener;

    private List<NewsListener> newsListenerList;

    private Set<String> ids;

//    public FXNewsProvider(NewsListener newsListener) {
//        this.newsListener = newsListener;
//    }

    public void init_test(){
        System.out.println("init_test");
    }

    public List<NewsListener> getNewsListenerList() {
        return newsListenerList;
    }

    public void setNewsListenerList(List<NewsListener> newsListenerList) {
        this.newsListenerList = newsListenerList;
    }

    public Set<String> getIds() {
        return ids;
    }

    public void setIds(Set<String> ids) {
        this.ids = ids;
    }

    public void getNews() {
        newsListener.getNews();
    }

    public NewsListener getNewsListener() {
        return newsListener;
    }

    public void setNewsListener(NewsListener newsListener) {
        this.newsListener = newsListener;
    }
}
